---
page_title: "cloudflare_device_posture_rules Data Source - Cloudflare"
subcategory: ""
description: |-
  Use this data source to lookup a list of Device Posture Rule https://developers.cloudflare.com/cloudflare-one/identity/devices
---

# cloudflare_device_posture_rules (Data Source)

Use this data source to lookup a list of [Device Posture Rule](https://developers.cloudflare.com/cloudflare-one/identity/devices)

## Example Usage

```terraform
data "cloudflare_device_posture_rules" "example" {
  account_id = "f037e56e89293a057740de681ac9abbe"
  name       = "check for /dev/random"
  type       = "file"
}
```
<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `account_id` (String) The account identifier to target for the resource.

### Optional

- `name` (String) Name of the Device Posture Rule.
- `type` (String) The device posture rule type. Available values: `serial_number`, `file`, `application`, `gateway`, `warp`, `domain_joined`, `os_version`, `disk_encryption`, `firewall`, `client_certificate`, `workspace_one`, `unique_client_id`, `crowdstrike_s2s`, `sentinelone`, `kolide`, `tanium_s2s`, `intune`, `sentinelone_s2s`.

### Read-Only

- `id` (String) The ID of this resource.
- `rules` (List of Object) A list of matching Device Posture Rules. (see [below for nested schema](#nestedatt--rules))

<a id="nestedatt--rules"></a>
### Nested Schema for `rules`

Read-Only:

- `description` (String)
- `expiration` (String)
- `id` (String)
- `name` (String)
- `schedule` (String)
- `type` (String)


